import request from '@/utils/request'

// 查询菜单发布列表
export function listOnlComponentPath(query) {
  return request({
    url: '/component/onlComponentPath/list',
    method: 'get',
    params: query
  })
}

// 查询菜单发布详细
export function getOnlComponentPath(id) {
  return request({
    url: '/component/onlComponentPath/' + id,
    method: 'get'
  })
}

// 保存菜单发布
export function saveOnlComponentPath(data) {
  return request({
    url: '/component/onlComponentPath/save',
    method: 'post',
    data: data
  })
}

// 删除菜单发布
export function delOnlComponentPath(id) {
  return request({
    url: '/component/onlComponentPath/' + id,
    method: 'delete'
  })
}

// 导出菜单发布
export function exportOnlComponentPath(query) {
  return request({
    url: '/component/onlComponentPath/export',
    method: 'get',
    params: query
  })
}
